package com.view;

import com.bean.EmployeeBean;

/**
 * The Class EmployeePageView.
 * 
 * @author : gbs02399 Created on : Jul 6, 2012 Project : LMS File Name :
 *         EmployeePageView.java
 */
public class EmployeePageView {

	/** The emp name. */
	private String empName;

	/** The emp user name. */
	private String empUserName;

	/** The emp password. */
	private String empPassword;

	/** The emp role. */
	private String empRole;

	/**
	 * Gets the emp name.
	 * 
	 * @return the emp name
	 */
	public String getEmpName() {
		return empName;
	}

	/**
	 * Sets the emp name.
	 * 
	 * @param empName
	 *            the new emp name
	 */
	public void setEmpName(final String empName) {
		this.empName = empName;
	}

	/**
	 * Gets the emp user name.
	 * 
	 * @return the emp user name
	 */
	public String getEmpUserName() {
		return empUserName;
	}

	/**
	 * Sets the emp user name.
	 * 
	 * @param empUserName
	 *            the new emp user name
	 */
	public void setEmpUserName(final String empUserName) {
		this.empUserName = empUserName;
	}

	/**
	 * Gets the emp password.
	 * 
	 * @return the emp password
	 */
	public String getEmpPassword() {
		return empPassword;
	}

	/**
	 * Sets the emp password.
	 * 
	 * @param empPassword
	 *            the new emp password
	 */
	public void setEmpPassword(final String empPassword) {
		this.empPassword = empPassword;
	}

	/**
	 * Gets the emp role.
	 * 
	 * @return the emp role
	 */
	public String getEmpRole() {
		return empRole;
	}

	/**
	 * Sets the emp role.
	 * 
	 * @param empRole
	 *            the new emp role
	 */
	public void setEmpRole(final String empRole) {
		this.empRole = empRole;
	}

	/**
	 * Gets the bean.
	 * 
	 * @return the bean
	 */
	public EmployeeBean getBean() {
		final EmployeeBean employeeBean = new EmployeeBean();
		employeeBean.setEmpName(empName);
		employeeBean.setUserName(empUserName);
		employeeBean.setEmpPassword(empPassword);
		employeeBean.setEmpRole(empRole);
		return employeeBean;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "EmployeePageView [empName=" + empName + ", empUserName="
				+ empUserName + ", empPassword=" + empPassword + ", empRole="
				+ empRole + "]";
	}

}
